package Arithmetic;

import java.io.*;

/**
 * Created by Administrator on 2017/5/19.
 */
public class IOFile {
    private PrintStream  ps;


    public IOFile(String file){
        try {
            ps = new PrintStream(file);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }

    public void WriteQuestionsToFile(String s){
        ps.append(s);// 在已有的基础上添加字符串
    }
}
